package drawer;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.widget.LinearLayout;

public class DrawerLeft extends LinearLayout {

	private Paint innerPaint;
	public DrawerLeft(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}
	public DrawerLeft(Context context) {
		super(context);
		init();
	}
	private void init() {
		innerPaint = new Paint();
		innerPaint.setARGB(225, 213, 210, 202); //gray
		innerPaint.setAntiAlias(true);
		//innerPaint.setShadowLayer(5,95,0, Color.parseColor("#aba8a1"));
	}
	public void setInnerPaint(Paint innerPaint) {
		this.innerPaint = innerPaint;
	}
	@Override
	protected void dispatchDraw(Canvas canvas) {
		RectF drawRect = new RectF();
		drawRect.set(0,0, getMeasuredWidth(), getMeasuredHeight());
		canvas.drawRoundRect(drawRect, 5, 5, innerPaint);
		super.dispatchDraw(canvas);
	}
}
